#ifndef HISI_GPIO_H__
#define HISI_GPIO_H__


#ifdef __cplusplus
extern "C" {
#endif

#define HISI_IONUM_CVT(grp, index) (grp * 8 + index)

int _hisi_gpio_set_pin(char base_num ,char pin_num); 
int hisi_gpio_set_pin_val(char base_num ,char pin_num, unsigned char value);
int _hisi_gpio_reset_pin(char base_num ,char pin_num);
int hisi_gpio_get_pin(char base_num, char pin_num);

int hisi_gpio_n_muxctrl_config(unsigned long muxctrl_reg, unsigned int value);

/**
 * @brief 获取海思die id
 * 
 * @param buff 
 * @param sz 
 */
void Get_die_id(unsigned char *buff, int sz);
#ifdef __cplusplus
}
#endif

#endif
